package com.xy.api.service.approval;

import com.xy.api.model.dto.approval.ApprovalInstanceDTO;
import com.xy.api.model.request.approval.ApplyApprovalRequest;
import com.xy.api.model.request.approval.ApprovalInstanceRequest;

public interface IApprovalInstanceService {

    /**
     * 申请审批
     *
     * @param request
     */
    void apply(ApplyApprovalRequest request);

    /**
     * 审批实例详情
     *
     * @param request
     * @return
     */
    ApprovalInstanceDTO detail(ApprovalInstanceRequest request);

    /**
     * 撤销申请
     *
     * @param request
     */
    void quash(ApprovalInstanceRequest request);
}
